package designpattern.prototype;

public class SpecificPrototype implements AbstractPrototype<SpecificPrototype>{
    private final String name;
    private final String sex;

    public SpecificPrototype(String name, String sex) {
        this.name = name;
        this.sex = sex;
    }

    @Override
    public SpecificPrototype clone() {
        return new SpecificPrototype(this.name,this.sex);
    }

    @Override
    public String toString() {
        return "SpecificPrototype{" +
                "name='" + name + '\'' +
                ", sex='" + sex + '\'' +
                '}';
    }
}
